<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<sql:setDataSource var="dataSource" driver="com.mysql.jdbc.Driver" 
                   url="jdbc:mysql://localhost:3306/avaliacao1" user="root" password="root" scope="session"/>
<c:set var="idCurso" value="${param.id}"/>
<sql:query var="disciplina" dataSource="${dataSource}">
    select nome, idDisciplina from disciplina where curso_idCurso=${idCurso}
</sql:query>
    <table border=1>
       
        <c:forEach  items="${disciplina.rows}" var="dis">
             <tr>
            <c:url value="mostrarAlunosDisciplina.jsp" var="urlDis">
                <c:param name="idDisciplina" value="${dis.idDisciplina}"/>
            </c:url>         
             <a href=""/>
                 <td><a href="${urlDis}"><c:out value="${dis.nome}"/></a></td> 
             </tr>
        </c:forEach>
         
    </table>
